/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * Author: zhnb
 * Date: 2011-7-25 下午05:18:40
 */
package com.number.start;

import java.io.Serializable;

import com.number.bean.Bond;
import com.number.operator.MainOperatorClient;

/**
 * 启动使用者
 * @author zhnb
 *
 */
public class StartAllClient implements Serializable {

    private static final long serialVersionUID = -6282697303788648813L;

    public static void main(String[] args) {

        // 以值对象方式 从Server返回值
        GetValueByObject();
        System.exit(0);
    }
    
    /**
     * 模型：Bond getBean(string beanUID); Bond为自定义类
     */
    private static void GetValueByObject(){
        
        MainOperatorClient moc = new MainOperatorClient();
        Bond bond = moc.getBean("something");
        
        StringBuffer info = new StringBuffer();
        if (bond == null) {
            info.append("null");
        } else {
            info.append("Bond@" + bond.hashCode() + ":");
            
            info.append("bName=" + bond.bName);
            info.append(",bCode=" + bond.bCode);
            
            info.append(":");
            info.append("bName=" + bond.getbName());
            info.append(",bCode=" + bond.getbCode());
        }
        
        System.out.println(info.toString());
    }

}
